<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Vue.extend</title>
    <script src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>Vue.extend</h1>
    <hr>
    <div id="mount-point"></div>
</body>
<script>
    //创建构造器
    var Profile = Vue.extend({
        template:'<p>{{firstName}}--{{lastName}}--{{age}}</p>',
        data:function(){
            return{
                firstName:"li",
                lastName:"feng",
                age:18
            }
        }
    })
    //创建一个Profile实例  挂载到一个元素上
    new Profile().$mount("#mount-point")
</script>
</html>